#pragma once
#include "CShareMem.h"
#include "CLock.h"
#include <string>
using namespace std;


class CValueSync
{
public:
	CValueSync(const wstring& strName, int nLen);
	~CValueSync(void);

	bool GetValue( unsigned char* outData, int nLen );
	bool SetValue(unsigned char* inData, int nLen);

private:
	CValueSync(void);

private:
	CShareMem* pShm;
	CLock* pLock;

	unsigned char* lpBuf;
	int nLength;
};
